from selenium import webdriver

driver = webdriver.Firefox()
driver.get("http://www.baidu.com")
driver.find_element_by_id("kw").send_keys("我家的小熊熊最卡哇伊！")
driver.find_element_by_id("su").click()
driver.get_screenshot_as_file('C:/Users/Administrator/Desktop/pyweb/xxx11.png')

#driver.quit()